projects
/
m6w6
/
ext-psi
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
we now have fcntl
[m6w6/ext-psi]
/
src
/
module.c
diff --git
a/src/module.c
b/src/module.c
index 3e95970cca7cdf6babd0af1665d693d7ca772966..5a44593af95a64401236d4a4766171ccd1e913ca 100644
(file)
--- a/
src/module.c
+++ b/
src/module.c
@@
-108,6
+108,15
@@
size_t psi_t_align(token_t t, size_t s)
return ((s - 1) | (a - 1)) + 1;
}
return ((s - 1) | (a - 1)) + 1;
}
+size_t psi_offset_padding(size_t diff, size_t alignment)
+{
+ if (diff && diff <= ((diff - 1) | (alignment -1)) + 1) {
+ diff = 0;
+ }
+
+ return diff;
+}
+
int psi_internal_type(impl_type *type)
{
switch (type->type) {
int psi_internal_type(impl_type *type)
{
switch (type->type) {