| 1 |
/* power_features.h -- check for POWER CPU features |
| 2 |
* Copyright (C) 2020 Matheus Castanho <[email protected]>, IBM |
| 3 |
* Copyright (C) 2021 Mika T. Lindqvist <[email protected]> |
| 4 |
* For conditions of distribution and use, see copyright notice in zlib.h |
| 5 |
*/ |
| 6 |
|
| 7 |
#ifndef POWER_H_ |
| 8 |
#define POWER_H_ |
| 9 |
|
| 10 |
struct power_cpu_features { |
| 11 |
int has_altivec; |
| 12 |
int has_arch_2_07; |
| 13 |
int has_arch_3_00; |
| 14 |
}; |
| 15 |
|
| 16 |
void Z_INTERNAL power_check_features(struct power_cpu_features *features); |
| 17 |
|
| 18 |
#endif /* POWER_H_ */ |