misc/winutils/include/SDL_cpuinfo.h
author Wuzzy <Wuzzy2@mail.ru>
Tue, 20 Feb 2018 17:52:22 +0100
changeset 13039 aed4b25ff242
parent 7809 7d4fb2f35f4f
permissions -rw-r--r--
Fix volume caption not being shown when hitting mute key
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     1
/*
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     2
    SDL - Simple DirectMedia Layer
7809
7d4fb2f35f4f update SDL headers for winutils
koda
parents: 6560
diff changeset
     3
    Copyright (C) 1997-2012 Sam Lantinga
6560
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     4
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     5
    This library is free software; you can redistribute it and/or
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     6
    modify it under the terms of the GNU Lesser General Public
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     7
    License as published by the Free Software Foundation; either
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     8
    version 2.1 of the License, or (at your option) any later version.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
     9
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    10
    This library is distributed in the hope that it will be useful,
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    11
    but WITHOUT ANY WARRANTY; without even the implied warranty of
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    12
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    13
    Lesser General Public License for more details.
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    14
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    15
    You should have received a copy of the GNU Lesser General Public
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    16
    License along with this library; if not, write to the Free Software
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    17
    Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    18
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    19
    Sam Lantinga
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    20
    slouken@libsdl.org
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    21
*/
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    22
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    23
/**
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    24
 *  @file SDL_cpuinfo.h
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    25
 *  CPU feature detection for SDL
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    26
 */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    27
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    28
#ifndef _SDL_cpuinfo_h
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    29
#define _SDL_cpuinfo_h
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    30
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    31
#include "SDL_stdinc.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    32
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    33
#include "begin_code.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    34
/* Set up for C function definitions, even when using C++ */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    35
#ifdef __cplusplus
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    36
extern "C" {
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    37
#endif
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    38
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    39
/** This function returns true if the CPU has the RDTSC instruction */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    40
extern DECLSPEC SDL_bool SDLCALL SDL_HasRDTSC(void);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    41
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    42
/** This function returns true if the CPU has MMX features */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    43
extern DECLSPEC SDL_bool SDLCALL SDL_HasMMX(void);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    44
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    45
/** This function returns true if the CPU has MMX Ext. features */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    46
extern DECLSPEC SDL_bool SDLCALL SDL_HasMMXExt(void);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    47
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    48
/** This function returns true if the CPU has 3DNow features */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    49
extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNow(void);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    50
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    51
/** This function returns true if the CPU has 3DNow! Ext. features */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    52
extern DECLSPEC SDL_bool SDLCALL SDL_Has3DNowExt(void);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    53
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    54
/** This function returns true if the CPU has SSE features */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    55
extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE(void);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    56
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    57
/** This function returns true if the CPU has SSE2 features */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    58
extern DECLSPEC SDL_bool SDLCALL SDL_HasSSE2(void);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    59
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    60
/** This function returns true if the CPU has AltiVec features */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    61
extern DECLSPEC SDL_bool SDLCALL SDL_HasAltiVec(void);
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    62
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    63
/* Ends C function definitions when using C++ */
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    64
#ifdef __cplusplus
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    65
}
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    66
#endif
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    67
#include "close_code.h"
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    68
ca07e6be08d0 GCI task: cmd.exe
bovi
parents:
diff changeset
    69
#endif /* _SDL_cpuinfo_h */