Skip to content

Commit

Permalink
Add bitCeilForType.
Browse files Browse the repository at this point in the history
  • Loading branch information
HaxyM authored Sep 6, 2024
1 parent 99fd0f0 commit 5738987
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions include/crap/bit
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#ifndef CRAP_BIT
#define CRAP_BIT

#include "bit.d/bitceilfortype.h"
#include "bit.d/bitceiltype.h"
#include "bit.d/bitceilvalue.h"
#include "bit.d/bitfloortype.h"
Expand Down
14 changes: 14 additions & 0 deletions include/crap/bit.d/bitceilfortype.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
#ifndef CRAP_BIT_BITCEILFORTYPE
#define CRAP_BIT_BITCEILFORTYPE

#include "bitceilvalue.h"

namespace crap
{
template <class Type> struct bitCeilForType
{
template <Type Value> using type = bitCeilValue<Type, Value>;
};
}
#endif

0 comments on commit 5738987

Please sign in to comment.