Skip to content

Commit

Permalink
Remove deprecation warning of extractBitField
Browse files Browse the repository at this point in the history
Reworking all the code which uses extractBitField is likely a task for
likwid-core, so let's postpone this for now.
  • Loading branch information
ipatix committed Oct 14, 2024
1 parent 64eda43 commit f22cefe
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/includes/bitUtil.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ uint64_t field64(uint64_t bitfield, int start, int length);
uint32_t field32(uint32_t bitfield, int start, int length);
void field64set(uint64_t* bitfield, int start, int length, uint64_t value);
void field32set(uint32_t* bitfield, int start, int length, uint32_t value);
uint32_t extractBitField(uint32_t inField, uint32_t width, uint32_t offset) __attribute__((deprecated)); // please use field32 field64 instead
uint32_t extractBitField(uint32_t inField, uint32_t width, uint32_t offset);
uint32_t getBitFieldWidth(uint32_t number);

#define setBit(reg,bit) (reg) |= (1ULL<<(bit))
Expand Down
4 changes: 4 additions & 0 deletions src/includes/sysFeatures_nvml.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#ifndef SYSFEATURES_NVML_H
#define SYSFEATURES_NVML_H

#endif // SYSFEATURES_NVML_H
1 change: 1 addition & 0 deletions src/sysFeatures_nvml.c
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
#include <sysFeatures_nvml.h>

0 comments on commit f22cefe

Please sign in to comment.