<p></p>
<p><b>@miri64</b> commented on this pull request.</p>

<hr>

<p>In <a href="https://github.com/RIOT-OS/RIOT/pull/16765#discussion_r694818610">core/include/kernel_defines.h</a>:</p>
<pre style='color:#555'>> @@ -187,6 +187,19 @@ extern "C" {
  */
 #define IS_USED(module) IS_ACTIVE(module)
 
+/**
+ * @def         KERNEL_VERSION(mayor, minor, patch)
+ * @brief       Generates a 64 bit variable of a release version
+ *              Comparisons to this only apply to released branches
+ *
+ * @param[in]   a   Mayor version of the release
+ * @param[in]   b   Minor version of the release
+ * @param[in]   c   Patch level of the release
+ *
+ * @returns     A machine readable version variable
+ */
+#define KERNEL_VERSION(a, b, c) (((uint64_t)(a) << 32) + ((b) << 16) + (c))
</pre>
<p>To we really need 16 bit for <code>b</code>? We do not use semantic versioning (and if we switch we need to have some other version hierarchy anyways), but the version is always comprised of a year and months. The year could be encoded in 16 bits (unless we assume RIOT will last until 656th century) and for the month even 4 bits suffice.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/RIOT-OS/RIOT/pull/16765#pullrequestreview-737184156">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABE7WYBF7CQDKJPVMJ7EJK3T6OISHANCNFSM5CRZHERA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&utm_campaign=notification-email">Android</a>.<img src="https://github.com/notifications/beacon/ABE7WYBQWK6FUPYUAW64RALT6OISHA5CNFSM5CRZHERKYY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOFPYITHA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/RIOT-OS/RIOT/pull/16765#pullrequestreview-737184156",
"url": "https://github.com/RIOT-OS/RIOT/pull/16765#pullrequestreview-737184156",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>