[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Commit-gnuradio] r9385 - gnuradio/branches/releases/3.1/gnuradio-core/s
From: |
jcorgan |
Subject: |
[Commit-gnuradio] r9385 - gnuradio/branches/releases/3.1/gnuradio-core/src/lib/filter |
Date: |
Sat, 23 Aug 2008 16:52:04 -0600 (MDT) |
Author: jcorgan
Date: 2008-08-23 16:52:04 -0600 (Sat, 23 Aug 2008)
New Revision: 9385
Modified:
gnuradio/branches/releases/3.1/gnuradio-core/src/lib/filter/gr_cpu.cc
gnuradio/branches/releases/3.1/gnuradio-core/src/lib/filter/gr_cpu.h
Log:
Applied changeset r9176 on trunk to release branch.
Modified: gnuradio/branches/releases/3.1/gnuradio-core/src/lib/filter/gr_cpu.cc
===================================================================
--- gnuradio/branches/releases/3.1/gnuradio-core/src/lib/filter/gr_cpu.cc
2008-08-23 21:26:19 UTC (rev 9384)
+++ gnuradio/branches/releases/3.1/gnuradio-core/src/lib/filter/gr_cpu.cc
2008-08-23 22:52:04 UTC (rev 9385)
@@ -1,6 +1,6 @@
/* -*- c++ -*- */
/*
- * Copyright 2002 Free Software Foundation, Inc.
+ * Copyright 2002,2008 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
@@ -85,6 +85,35 @@
}
bool
+gr_cpu::has_sse3 ()
+{
+ unsigned int ecx = cpuid_ecx (1); // standard features
+ return (ecx & (1 << 0)) != 0;
+}
+
+bool
+gr_cpu::has_ssse3 ()
+{
+ unsigned int ecx = cpuid_ecx (1); // standard features
+ return (ecx & (1 << 9)) != 0;
+}
+
+bool
+gr_cpu::has_sse4_1 ()
+{
+ unsigned int ecx = cpuid_ecx (1); // standard features
+ return (ecx & (1 << 19)) != 0;
+}
+
+bool
+gr_cpu::has_sse4_2 ()
+{
+ unsigned int ecx = cpuid_ecx (1); // standard features
+ return (ecx & (1 << 20)) != 0;
+}
+
+
+bool
gr_cpu::has_3dnow ()
{
unsigned int extended_fct_count = cpuid_eax (0x80000000);
Modified: gnuradio/branches/releases/3.1/gnuradio-core/src/lib/filter/gr_cpu.h
===================================================================
--- gnuradio/branches/releases/3.1/gnuradio-core/src/lib/filter/gr_cpu.h
2008-08-23 21:26:19 UTC (rev 9384)
+++ gnuradio/branches/releases/3.1/gnuradio-core/src/lib/filter/gr_cpu.h
2008-08-23 22:52:04 UTC (rev 9385)
@@ -1,6 +1,6 @@
/* -*- c++ -*- */
/*
- * Copyright 2002 Free Software Foundation, Inc.
+ * Copyright 2002,2008 Free Software Foundation, Inc.
*
* This file is part of GNU Radio
*
@@ -27,6 +27,10 @@
static bool has_mmx ();
static bool has_sse ();
static bool has_sse2 ();
+ static bool has_sse3 ();
+ static bool has_ssse3 ();
+ static bool has_sse4_1 ();
+ static bool has_sse4_2 ();
static bool has_3dnow ();
static bool has_3dnowext ();
};
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Commit-gnuradio] r9385 - gnuradio/branches/releases/3.1/gnuradio-core/src/lib/filter,
jcorgan <=