Skip to content

Commit

Permalink
Move jl_cpuid
Browse files Browse the repository at this point in the history
  • Loading branch information
Keno committed Mar 21, 2014
1 parent aa76e58 commit 5f4611f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,11 +409,9 @@ JL_STREAM *jl_stdin_stream(void) { return (JL_STREAM*)JL_STDIN; }
JL_STREAM *jl_stdout_stream(void) { return (JL_STREAM*)JL_STDOUT; }
JL_STREAM *jl_stderr_stream(void) { return (JL_STREAM*)JL_STDERR; }

// -- set/clear the FZ/DAZ flags on x86 & x86-64 --

#ifdef __SSE__
// CPUID

void jl_cpuid(int32_t CPUInfo[4], int32_t InfoType)
DLLEXPORT void jl_cpuid(int32_t CPUInfo[4], int32_t InfoType)
{
__asm__ __volatile__ (
#if defined(__i386__) && defined(__PIC__)
Expand All @@ -432,6 +430,9 @@ void jl_cpuid(int32_t CPUInfo[4], int32_t InfoType)
);
}

// -- set/clear the FZ/DAZ flags on x86 & x86-64 --
#ifdef __SSE__

DLLEXPORT uint8_t jl_zero_subnormals(uint8_t isZero)
{
uint32_t flags = 0x00000000;
Expand Down

0 comments on commit 5f4611f

Please sign in to comment.